package com.axis2.common.transportsender;

import org.apache.axis2.AxisFault;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.json.gson.JSONMessageHandler;
import org.apache.axis2.transport.http.impl.httpclient4.HTTPClient4TransportSender;

/**
 * @author: yc
 */
public class HTTPClient4JsonTransportSender extends HTTPClient4TransportSender {

    @Override
    public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
        JSONMessageHandler jsonMessageHandler = new JSONMessageHandler();
        return jsonMessageHandler.invoke(msgContext);
    }
}
